<jsp:include page="logincheck.jsp" />
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%@ page import="java.util.*" %>

<html>

	<head>
		<title>Administration Console</title>
		<link rel="stylesheet" href="default.css" type="text/css" media="screen"></link>
		<script type="text/javascript" language="javascript" src="addDiscountPlan.js"></script>
	</head>

	<body>
		<div id="container">
			<div id="navigation">
<p>&nbsp;</p>
<jsp:include page="navigation.jsp" />
			</div>
			
			<div id="header">				
<img src="images/header.png" />
			</div>

			<div id="content">
<!-- Main code -->

<h1>Discount Plans :: Add New</h1>

<form method="post" action="addDiscountPlanFunction.jsp" name="addDiscountPlan" onSubmit="return validate();">
	<table width="100%" border="0" cellpadding="0" cellspacing="0">
		<tr style="background-image: url('images/tableBackground.png');">
			<td width="100" class="tableHeader">Plan name:</td>
			<td><input class="textField" type="text" id="name" name="name" onClick="this.style.background='#efefef';" onBlur="this.style.background='#fff';"></td>
		</tr>
		
		<tr>
			<td class="tableHeader">Start Date:</td>
			<td>
				<select id="startDay" name="startDay">
					<option value="monday">Monday</option>
					<option value="tuesday">Tuesday</option>
					<option value="wednesday">Wednesday</option>
					<option value="thursday">Thursday</option>
					<option value="friday">Friday</option>
					<option value="saturday">Saturday</option>
					<option value="sunday">Sunday</option>
				</select>
				
				@
				
				<select id="startHour" name="startHour">
					<%
						for (int i = 0; i < 24; i++)
						{
					%>
							<option value="<%= i %>"><%= i %></option>
					<%
						}
					%>
				</select>
				
				:
				
				<select id="startMinute" name="startMinute">
					<%
						for (int i = 0; i < 60; i++)
						{
					%>
							<option value="<%= i %>"><%= i %></option>
					<%
						}
					%>
				</select>
			</td>
		</tr>
		
		<tr style="background-image: url('images/tableBackground.png');">
			<td class="tableHeader">End Date:</td>
			<td>
				<select id="endDay" name="endDay">
					<option value="monday">Monday</option>
					<option value="tuesday">Tuesday</option>
					<option value="wednesday">Wednesday</option>
					<option value="thursday">Thursday</option>
					<option value="friday">Friday</option>
					<option value="saturday">Saturday</option>
					<option value="sunday">Sunday</option>
				</select>
				
				@
				
				<select id="endHour" name="endHour">
					<%
						for (int i = 0; i < 24; i++)
						{
					%>
							<option value="<%= i %>"><%= i %></option>
					<%
						}
					%>
				</select>
				
				:
				
				<select id="endMinute" name="endMinute">
					<%
						for (int i = 0; i < 60; i++)
						{
					%>
							<option value="<%= i %>"><%= i %></option>
					<%
						}
					%>
				</select>
			</td>
		</tr>
		
		<tr>
			<td class="tableHeader">Rate:</td>
			<td><input class="textField" type="text" id="rate" name="rate" onClick="this.style.background='#efefef';" onBlur="this.style.background='#fff';"></td>
		</tr>

		<tr style="background-image: url('images/tableBackground.png');">
			<td colspan="3">
				<p class="floatRight"><input type="submit" value="Create Plan"></p>
			</td>
		</tr>
	</table>
</form>

<!-- Main Code -->
			</div>

			<div id="footer">
<jsp:include page="footer.jsp" />
			</div>
		</div>
	</body>

</html>